<?php /* Smarty version Smarty-3.1.6, created on 2017-02-20 09:58:59
         compiled from "F:/cly/Show/Admin/View\Newsclass\showlist.html" */ ?>
<?php /*%%SmartyHeaderCode:28025589bd45a883642-93086703%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0e0454e276cc68da62e0e9b089ed90a5f0c42cb3' => 
    array (
      0 => 'F:/cly/Show/Admin/View\\Newsclass\\showlist.html',
      1 => 1487555938,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28025589bd45a883642-93086703',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_589bd45aa11a4',
  'variables' => 
  array (
    'flist' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_589bd45aa11a4')) {function content_589bd45aa11a4($_smarty_tpl) {?><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/js/jquery-3.1.1.min.js"></script>
    
    <script type="text/javascript">
        $(document).ready(function(){
            $("input").change(function(){
                var id   = $(this).attr('fd');
                var sort = $(this).val();
                $.post('sort_change',{id:id,sort:sort},function(data){
                    if(data){
                        alert(data);
                    }
                });
            });
        });
    </script>
    
    <title>栏目</title>
   </head>
   <body>
    <form action="add_newsclass.php" method="post">
    <div class="mainbox">
          <div class="tablebox">
            <table class="table">
              <tr class="one">
                <td>ID</td>
                <td>栏目名称</td>
                <td>内容数</td>
                <td>是否在导航条显示？</td>
                <td>排序</td>
                <td id="a">操作</td>
              </tr>
              <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['n'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['n']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['name'] = 'n';
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['flist']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total']);
?>
              <tr>
                <td><?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['id'];?>
</td>
                <td><strong><?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['name'];?>
</strong></td>
                <td><a href="<?php echo @__MODULE__;?>
/News/class_check/id/<?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['id'];?>
/name/<?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['name'];?>
">查看</a></td>
                <td><?php if ($_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['state']==0){?>不显示<?php }else{ ?>显示<?php }?></td>
                <td><input name="sort" fd="<?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['id'];?>
" type="text"  value="<?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['sort'];?>
"></td>
                <td>
                  <a href="#" onclick="if(confirm('确定删除?'))(location.href='<?php echo @__CONTROLLER__;?>
/delete/id/<?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['id'];?>
')"><img src="/Show/Admin/Public/image/del.jpg"  class="pit" title="删除"></a>
                  <a href="#" onclick="location.href='<?php echo @__CONTROLLER__;?>
/xiugai/id/<?php echo $_smarty_tpl->tpl_vars['flist']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['id'];?>
'" ><img src="/Show/Admin/Public/image/edi.jpg" class="pit"  title="编辑"></a>
                </td>
              </tr>                        
              <?php endfor; endif; ?>
              </table>
          </div>
    </div>
    </form>
  </body>
</html><?php }} ?>